package com.chushouya.manager.dto.admin.home;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 用户评价DTO
 * 
 * @author chushouya
 */
@Data
@ApiModel("用户评价")
public class UserReviewDTO {

    @ApiModelProperty("评价ID")
    private Long id;

    @ApiModelProperty("用户名")
    @JsonProperty("user_name")
    private String userName;

    @ApiModelProperty("用户头像")
    private String avatar;

    @ApiModelProperty("评分")
    private Double rating;

    @ApiModelProperty("评价内容")
    private String comment;

    @ApiModelProperty("手机型号")
    @JsonProperty("phone_model")
    private String phoneModel;

    @ApiModelProperty("回收价格")
    @JsonProperty("recovery_price")
    private Integer recoveryPrice;

    @ApiModelProperty("创建时间")
    @JsonProperty("created_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;

    @ApiModelProperty("点赞数")
    private Integer likes;
}
